package com.eningqu.aipen.utils;

import com.kongzue.dialogx.dialogs.PopTip;
import com.kongzue.dialogx.style.MaterialStyle;

/**
 * Package:com.eningqu.aipen.utils
 * Author:starr
 * Time:2024/2/27 13:09
 * Description:
 */
public class PopTipUtils {

    public static void errMsg(String msg){
        PopTip.build(MaterialStyle.style())
                .setMessage(msg)
                .iconError()
                .showShort();
    }

    public static void successMsg(String msg){
        PopTip.build(MaterialStyle.style())
                .setMessage(msg)
                .iconSuccess()
                .showShort();
    }

    public static void warnMsg(String msg){
        PopTip.build(MaterialStyle.style())
                .setMessage(msg)
                .iconWarning()
                .showShort();
    }

}
